Update dependency apple/swift-syntax to v602 #1614
Open
+5
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
from: "601.0.1"
->from: "602.0.0"
from: "600.0.1"
->from: "602.0.0"
from: "510.0.3"
->from: "602.0.0"
from: "509.1.1"
->from: "602.0.0"
from: "508.0.1"
->from: "602.0.0"
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
apple/swift-syntax (apple/swift-syntax)
v602.0.0
Compare Source
New APIs
SwiftLexicalLookup
- A new Swift unqualified lookup library$x
and generic parameters inside extensions. Furthermore, in the future, once the compiler adoptsSwiftLexicalLookup
and it becomes the canonical implementation, results produced by the query will be guaranteed to be correct.DiagnosticMessage
has a new optional property,category
, that provides a category name and documentation URL for a diagnostic.[#CategoryName]
, and can print categories as "footnotes" with itscategoryFootnotes
method.category
property has optional type, and there is a default implementation that returnsnil
. Types that conform toDiagnosticMessage
can choose to implement this property and provide a category when appropriate.DiagnosticsFormatter
has a new method,formattedMessage
, that formats a diagnostic message without any corresponding syntax node.FixIt.Change
has a new casereplaceText
that performs a textual replacement of a range of text with another string.FixIt.Change
cases provide structuredmodifications to syntax trees, such as replacing specific notes. Some
clients provide Fix-Its that don't fit well into this structured model. The
replaceText
case makes it possible for such clients to express Fix-Its.API Behavior Changes
Deprecations
API-Incompatible Changes
ExpandEditorPlaceholdersToTrailingClosures
has changed toExpandEditorPlaceholdersToLiteralClosures
format
argument to this rewriter. Additionally clients that support nested placeholders may request that the entire expanded closure be wrapped in an outer placeholder, e.g.<#{ <#foo#> in <#Bar#> }#>
.ExpandEditorPlaceholdersToTrailingClosures
withExpandEditorPlaceholdersToLiteralClosures
. The initializer does not need to change:.init(indentationWidth:)
on the new type provides the same behavior as the old type.SyntaxArena
andParsingSyntaxArena
has changed to SPISyntaxArena
and the subclasses were only meant to be used when dealing withRawSyntax
which is also SPI.SyntaxArena
orParsingSyntaxArena
directly.public
, most initializers were already SPI and there was no way to retrive them from existing types via public API.SyntaxChildrenIndex
is no longerExpressibleByNilLiteral
nil
used to represent the end index. However, due to a change in the internal structure, the end index must now be retrieved from the collection.SyntaxChildren.endIndex
instead.ExpressibleByNilLiteral
was a mistake. In general,Collection.Index
should only be created and managed by the collection itself. For example,Collection.index(after:)
exists, butIndex.advanced(by:)
does not.Some cases in
AttributeSyntax.Arguments
choices and related types has been removedAttributeSyntax
with.argumentList(LabeledExprListSyntax)
.AttributeSyntax.Arguments.argumentList(LabeledExprListSyntax)
instead.AttributeSyntax.Arguments
:token(TokenSyntax)
,string(StringLiteralExprSyntax)
,conventionArguments(ConventionAttributeArgumentsSyntax)
,conventionWitnessMethodArguments(ConventionWitnessMethodAttributeArgumentsSyntax)
,opaqueReturnTypeOfAttributeArguments(OpaqueReturnTypeOfAttributeArgumentsSyntax)
,exposeAttributeArguments(ExposeAttributeArgumentsSyntax)
,underscorePrivateAttributeArguments(UnderscorePrivateAttributeArgumentsSyntax)
, andunavailableFromAsyncArguments(UnavailableFromAsyncAttributeArgumentsSyntax)
. Removed Syntax kinds:ConventionAttributeArgumentsSyntax
,ConventionWitnessMethodAttributeArgumentsSyntax
,OpaqueReturnTypeOfAttributeArgumentsSyntax
,ExposeAttributeArgumentsSyntax
,UnderscorePrivateAttributeArgumentsSyntax
, andUnavailableFromAsyncAttributeArgumentsSyntax
.ExpandEditorPlaceholdersToLiteralClosures
&CallToTrailingClosures
now take aSyntax
parameterSyntax
and return aSyntax?
. If a non-function-like syntax node is passed,nil
is returned. The previousFunctionCallExprSyntax
overloads are deprecated.Syntax(...)
initializer call for the argument, and cast the result with.as(...)
if necessary.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.